# import datetime
import  datetime as dt
# data = datetime.datetime(2024,4,5)
# data2 = datetime.datetime(2024,4,6)
data = dt.datetime(2024,4,5)
data2 = dt.datetime(2024,4,6)
print(data2 - data)

class Solution:
    def ReverseSentence(self , str: str) -> str:
        # write code here
        tokens = str.split(' ')
        tokens.reverse()
        return ' '.join(tokens)
    def solve(self , A: str, B: str) -> bool:
        # write code here
        if len(A) != len(B) :
            return False
        return A in (B+B)

    def countPrefixes(self, words: list[str], s: str) -> int:
        count = 0
        for word in words:
            if s.startswith(word):
                count += 1
        return count